package itcast.dao;

import java.util.List;

import itcast.domain.CarBean;
import itcast.domain.ShopsBean;

public interface shopsDao {

	
	//查询所有商品返回所有商品
	public List<ShopsBean> findallshops();
	//查询所有商品总数
	public int findshopTotalCount();
	//后台实现的商品翻页传入开始页码start，和每一页显示rows！
	public List<ShopsBean> findshopByPage(int start, int rows);
	//根据商品id查询商品对象
	public ShopsBean findshopid(int shopid);
	//根域用户id查询购物车，把该用户的购物车里的对象全部取出
	public List<CarBean> findcarshop(int userid);
	//添加商品进入购物车实现，把其的用户id与商品id
	public void addshop(int shopid, int uid, ShopsBean sBean);
	//原商品已经纯在，改其数量皆可
	public void updatecarshop(int shopid, int uid, int toal);
	//删除购物车里面商品
	public void delcarshop(int shopid);
	//修改商品数量
	public void updateshopcount(int shopid, int shopcount);
	
	
	public CarBean findcarshops(String shopid, int i);
	

}
